<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>渲染管线</title>
  <!-- 
    1.顶点数据(vertex Data)
      顶点坐标
      纹理坐标
      顶点法线
      顶点颜色

    2.缓存区(attribute) + 矩阵(uniform)
      缓存区是: cpu 向 gpu 传递的过程

    3.顶点着色器(vertex shader)
    4.图元配置(shape assembly)
    5.光栅化(Rosterization)
    6.片段着色器(fragment shader)
    7.测试和混合(test & blending)
   -->
  <style>
    *,
    *::after,
    *::before {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      min-height: 100vh;
    }

    :root:focus-within {
      scroll-behavior: smooth;
    }

    body {
      min-height: inherit;
    }

    img {
      user-select: none;
    }
  </style>
</head>

<body>
  <h1>渲染管线</h1>
  <h3>1.将3D坐标转换为2D坐标</h3>
  <h3>2.将2D坐标转换成实际有颜色的像素</h3>
  <img src="./img/0渲染管道.jpg" alt="">
</body>
<script>
  "use strict"; {
  };
</script>

</html>